package com.hs.room.model.sys


import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import java.util.Date

@Entity(tableName = "sys_log")
data class SysLog(
    @PrimaryKey(autoGenerate = true)
    val id : Long? = null,
    val logName:String,
    @ColumnInfo
    val createTime:String,
    @ColumnInfo
    val updateTime:String?="",
    @ColumnInfo
    val createTimestamp : Long,
    @ColumnInfo
    val updateTimestamp : Long? = 0,
    @ColumnInfo
    val createBy:String? ="",
    @ColumnInfo
    val updateBy:String? ="",
    @ColumnInfo
    val enable : Boolean? = true,
    // 状态
    @ColumnInfo
    val status : Int? = 0,
    // 类型、来源
    @ColumnInfo
    val sourceType: Int? = 3,
    // 日志等级
    @ColumnInfo
    val level : Int? = 1,
    // 日志内容
    @ColumnInfo
    val message : String,
    /**
     *  耗时
     */
    @ColumnInfo
    val timeConsuming : Long? = 0,
    //参数
    @ColumnInfo
    val paramsArg:String? ="",
    /**
     * 返回值
     */
    @ColumnInfo
    val proceedResult: String? ="",
)
